package com.example.administrator.daydayappmarket.software.choice.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by lenovo on 2016/12/26.
 */

public class SoftwareChoiceTopicApps {
    private String id;
    private String name;
    private String icon_url;
    private String download_url;
    private int package_size;
    private String reviews;
    private int download_count;
    public void parseJson(JSONObject jsonObject) throws JSONException{
        if (jsonObject != null) {
            id=jsonObject.getString("id");
            name=jsonObject.getString("name");
            icon_url=jsonObject.getString("icon_url");
            download_url=jsonObject.getString("download_url");
            package_size=jsonObject.getInt("package_size");
            reviews=jsonObject.getString("reviews");
            download_count=jsonObject.getInt("download_count");
        }
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getIcon_url() {
        return icon_url;
    }

    public String getDownload_url() {
        return download_url;
    }

    public int getPackage_size() {
        return package_size;
    }

    public String getReviews() {
        return reviews;
    }

    public int getDownload_count() {
        return download_count;
    }
}
